package DataGo;

import javax.swing.text.DateFormatter;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class Data05 {
    public static void main(String[] args) {
        String ti="2020-11-22 10:12:12";
        DateTimeFormatter dateTimeFormatter=   DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
        LocalDateTime localDateTime= LocalDateTime.parse(ti,dateTimeFormatter);
        LocalDateTime newlocalDateTime= localDateTime.plusDays(1);
        String resu=newlocalDateTime.format(dateTimeFormatter);
        System.out.println(resu);
    }
}
